package com.example.ruiji.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class Employee implements Serializable {
    /*
    设置序列化ID
     */
    private static final long serialVersionUID= 1L;
    private Long id ;
    private String username;
    private String name;
    private String password;
    private String phone;
    private String sex;
    private String idNumber; // 驼峰命名法 映射字段名为id_number
    private Integer status;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    /*
    自动字段填充 tablefield
     */
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;


}
